<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="姚德秋">
    <title></title>
    <style>
        * {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            /* #f7f7f7;  */
            background-color: #f7f7f7;
        }

        .clear {
            clear: both;
        }

        .nav {
            width: 100%;
            background-color: #10c55b;
            height: 50px;
        }

        .contenter1 {
            width: 1200px;
            margin: 0 auto;
        }

        .left {
            float: left;
        }

        .right {
            float: right;
            margin-top: -40px;
            width: 300px;
            display: flex;
            justify-content: flex-end;
        }

        .left span {
            line-height: 50px;
            color: white;
            font-size: 20px;
        }

        .right button {
            padding: 3px 10px;
            border-radius: 10px;
            background-color: #01923d;
            color: white;
        }

        #stlll {
            font-size: 10px;
            margin-left: 10px;
            line-height: 30px;
        }

        .right span {
            color: white;
            margin-right: 18px;
            font-size: 20px;
        }

        .left div {
            float: left;
            height: 50px;
            width: 100px;
        }

        .stll span {
            margin-left: 30px;
        }

        .left div.stll {
            background-color: #01923d;
        }

        .list-bouttom {
            width: 100%;
            height: 200px;
        }

        .left1 {
            width: 420px;
            height: 200px;
            float: left;
        }

        .left1 img {
            float: right;
        }

        #zhuanshi {
            display: inline-block;
            width: 30px;
            height: 30px;
            background-image: url(common.png);
            background-position: -94px -170px;
        }
        .right1 {
            width: 900px;
            margin: 0 auto;
            height: 150px;
        }
        .top p {
            float: left;
            margin: 15px 20px;
            font-size: 18px;
        }
        .top input{
            border-top: hidden;
            border-bottom: hidden;
            margin-top: 10px;
            width: 500px;
            height: 39px;
            float: left;
            font-size: 18px;
        }
        .top img {
            height: 60px;
            width: 100px;
        }
        .top button {
            border: hidden;
            height: 60px;
            width: 100px;
            background-color: transparent;
            float: right;
            margin-top: -3px;
        }
        .top {
            height: 60px;
            width: 700px;
            border: 2px solid #01923d;
            /* line-height: 200px;  */
            margin-top: 30px;
        }
        header {
            height: 200px;
        }
        .butt span {
            float: left;
            font-size: 12px;
            margin-right: 8px;
        }
        /*--------------------------------------------------------------------------------------------  */
        ul {
            padding: 0;
            margin: 0;
            list-style: none;
        }
        .box {
            width: 100%;
            height: 330px;
            margin: 0 auto;
            position: relative;
        }
        .img-list a {
            position: absolute;
            left: calc(50% - 600px);
            width: 1200px;
            height: 330px;
            margin: 0 auto;
        }
        .img-list li {
            display: none;
            width: 1920px;
            height: 320px;
            background-color: red;
        }
        .img-list li.current {
            display: block;
        }
        .indicator {
            width: 100%;
            position: absolute;
            left: 0;
            bottom: 20px;
            display: flex;
            justify-content: center;
            color: white;
        }
        .indicator li {
            width: 20px;
            height: 20px;
            background-color: #aaa;
            text-align: center;
            line-height: 20px;
            margin: 0 5px;
            border-radius: 50%;
            cursor: pointer;
        }
        .indicator li.active {
            background-color: black;
        }
        .img-click span {
            width: 50px;
            height: 80px;
            line-height: 80px;
            font-size: 25px;
            text-align: center;
            color: white;
            background-color: rgba(0, 0, 0, 0.1);
            position: absolute;
            top: calc(50% - 40px);
            display: none;
        }
        .img-click span:hover {
            background-color: orange;
            cursor: pointer;
        }

        .img-click .prev {
            left: 0;
        }
        .img-click .next {
            right: 0;
        }
        .container2 {
            width: 1200px;
            height: 1000px;
            margin: 0 auto;
        }
        .text-logo {
            width: 1200px;
            height: 90px;
        }
        .text-logo .ll {
            display: inline-block;
            width: 30px;
            height: 30px;
            float: left;
            margin-top: 30px;
            background-image: url(common.png);
            background-position: -96px -421px;
        }
        .text-logo .zzz {
            display: inline-block;
            width: 30px;
            height: 30px;
            float: left;
            margin-top: 30px;
            background-image: url(common.png);
            background-position: -128px -420px;
        }
        .text-logo p {
            font-size: 30px;
            display: inline-block;
            margin: 25px 15px;
            float: left;
            color: #666666;
        }
        .text-logo a {
            text-decoration: none;
        }
        .text-logo .aaa {
            float: left;
            line-height: 90px;
            color: #898989;
        }
        .text-logo .aa {
            line-height: 90px;
            float: right;
            color: #898989;
        }
        .text-tupian {
            height: 190px;
            width: 1200px;
            display: flex;
            justify-content: space-around;
        }

        .text-tupian img {
            position: relative;
            /* z-index: 666; */
            /* margin-left: -140px;  */
            /* margin: 0 auto; */
        }

        .mini {
            /* top: -30px; */
            /* margin-top:30px; */
            width: 50px;
            height: 50px;
            position: absolute;
            /* float: left;  */
            display: inline-block;
            background-image: url(common.png);
            /* background-position:-60px -55px; */
        }

        #overlay {
            margin-top: -202px;
            /* margin-left: -140px;  */
            width: 290px;
            height: 200px;
            position: absolute;
            /* z-index: 9888; */
            display: block;
            background-color: rgba(0, 0, 0, 0.2);
            display: none;
        }

        #overlayl .nnn {
            width: 50px;
            height: 50px;
            float: right;
            display: inline-block;
            background-image: url(common.png);
            background-position: 0 -55px;
        }

        #overlayl .mmm {
            width: 50px;
            height: 50px;
            float: right;
            display: inline-block;
            background-image: url(common.png);
            background-position: -60px -55px;
        }

        #overlayl {
            margin-top: -390px;
            width: 290px;
            height: 386px;
            position: absolute;
            display: block;
            background-color: rgba(0, 0, 0, 0.2);
            display: none;
        }

        #overlay h2 {
            text-align: center;
            margin-top: 30px;
            color: white;
        }

        #overlay h4 {
            text-align: center;
            margin-top: 60px;
            color: white;
        }

        .text-tupian2 {
            width: 1200px;
            display: flex;
            justify-content: space-around;
        }
        /* .text-tupian2 section{
            /* height: 386px; */
        /* margin-top: -30px;
        } */

        .container3 {
            width: 1200px;
            height: 300px;
            margin: 0 auto;
        }

        .container3 section {
            width: 180px;
            float: left;
        }

        .container3 ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .container3 ul li {
            margin-top: 5px;
        }

        #uuu a {
            font-size: 15px;
            color: #898989;
            text-decoration: none;
        }

        #sec {
            width: 300px;
            float: right;
        }

        #sec .one {
            float: left;
            margin-top: 10px;
            display: inline-block;
            width: 30px;
            height: 30px;
            background-image: url(common.png);
            background-position: -65px -174px;
        }

        #sec .two {
            float: left;
            margin-top: 8px;
            display: inline-block;
            width: 30px;
            height: 30px;
            background-image: url(common.png);
            background-position: -65px -174px;
        }

        #sec P {
            display: inline-block;
            color: #898989;
            margin: 10px 0;
        }

        #sec .np {
            font-size: 20px;
        }

        #sec button {
            width: 140px;
            height: 40px;
            display: block;
            margin-top: 17px;
            background-color: #f7f7f7;
            border: hidden;
        }

        .di {
            width: 1200px;
            height: 70px;
            margin: 0 auto;
            border-top: 1px solid black;
        }

        .di li {
            float: left;
            line-height: 70px;
            margin: 0 10px;
        }

        .di .zu {
            width: 600px;
            float: left;
        }

        .di .yo {
            font-size: 13px;
            float: right;
        }

        .di .yo p {
            display: inline-block;
            line-height: 50px;
        }

        .weibo {
            width: 30px;
            height: 30px;
            float: left;
            background-image: url(common.png);
            background-position: -67px -210px;
            margin-top: 30px;
        }

        .weixin {
            width: 30px;
            height: 30px;
            float: left;
            background-image: url(common.png);
            background-position: -35px -210px;
            margin-top: 30px;
        }

        .footer {
            background-color: white;
        }
    </style>
</head>

<body>
    <header>
        <div class="nav">
            <div class="contenter1">
                <div class="left">
                    <div class="stll"> <span>首页</span> </div>
                    <div> <span>所有分类</span> </div>
                    <div><span>设计创意</span> </div>
                    <div><span>办公创意</span> </div>
                    <div><span>. . . </span> </div>
                </div>
                <div class="clear"></div>
                <div class="right">
                    <span id="zhuanshi"></span>
                    <span>VIP中心</span>
                    <button type="#">请登录</button>
                    <span id="stlll">免费注册</span>
                </div>
            </div>
        </div>
        <div class="list-bouttom">
            <div class="left1">
                <img src="logo-x.png" alt="">
            </div>
            <div class="right1">
                <div class="top">
                    <p>全站</p>
                    <input type="text" placeholder="800万免费设计素材任意下载" value="">
                    <button type="">
                        <img src="qq.png" alt="">
                    </button>
                </div>
                <div class="butt">
                    <span>热门搜索：</span>
                    <span style="color:#10c55b;">七夕</span>
                    <span>详情页</span>
                    <span style="color:#10c55b;">icon</span>
                    <span>主图</span>
                    <span style="color:#10c55b;">秋季</span>
                    <span style="color:#10c55b;">PPT模板</span>
                    <span>EXCEL模板</span>
                    <span>首页</span>
                    <span>个人简历</span>
                    <span style="color:#10c55b;">装饰画</span>
                </div>
                <div></div>
            </div>
        </div>
    </header>
    <div class="box">
        <ul class="img-list">
            <li class="current" style="background-color:black;"><a href="#"><img src="千图网/banner01.jpg" alt=""></a></li>
            <li style="background-color:yellow;"><a href="#"><img src="千图网/banner02.jpg" alt=""></a></li>
            <li style="background-color:#fdf100;"><a href="#"><img src="千图网/banner03.jpg" alt=""></a></li>
            <li style="background-color:#2e9cff;"><a href="#"><img src="千图网/banner04.jpg" alt=""></a></li>
            <li style="background-color:#f3f4c7;"><a href="#"><img src="千图网/banner06.jpg" alt=""></a></li>
            <li style="background-color:black;"><a href="#"><img src="千图网/banner07.jpg" alt=""></a></li>
            <li style="background-color:#f5cbd9;"><a href="#"><img src="千图网/banner08.jpg" alt=""></a></li>
        </ul>
        <ul class="indicator">
            <li class="active"></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
        <div class="img-click">
            <span class="prev">&lt;</span>
            <span class="next">&gt;</span>
        </div>
    </div>
    <div class="container2">
        <section class="text-logo">
            <span class="ll"></span>
            <p>精选专题</p>
            <a class="aaa" href="#">100万党建素材，PPT汇报模板无限下载，每天仅需0.18元立享VIP特权</a>
            <a class="aa" href="#">更多>></a>
        </section>
        <div class="text-tupian">
            <section>
                <img src="千图网/jxzt01.jpg" alt="">
                <div id="overlay">
                    <h2>和啤酒有关</h2>
                    <h4>啤酒是如何拯救世界的</h4>
                </div>
            </section>
            <section>
                <img src="千图网/jxzt02.jpg" alt="">
                <div id="overlay">
                    <h2>和啤酒有关</h2>
                    <h4>啤酒是如何拯救世界的</h4>
                </div>
            </section>
            <section><img src="千图网/jxzt03.jpg" alt="">
                <div id="overlay">
                    <h2>和啤酒有关</h2>
                    <h4>啤酒是如何拯救世界的</h4>
                </div>
            </section>
            <section><img src="千图网/jxzt04.jpg" alt="">
                <div id="overlay">
                    <h2>和啤酒有关</h2>
                    <h4>啤酒是如何拯救世界的</h4>
                </div>
            </section>
        </div>
        <!-- <div class="clear"></div> -->
        <section class="text-logo">
            <span class="zzz"></span>
            <p>商用海报</p>
            <a class="aaa" href="#">招聘海报 绘图海报 企业文化 促销海报 原创插画</a>
            <a class="aa" href="#">更多>></a>
        </section>
        <div class="text-tupian2">
            <section>
                <span class="mini"></span>
                <img src="千图网/syhb01.jpg" alt="">
                <div id="overlayl">
                    <span class="nnn"></span>
                    <span class="mmm"></span>
                </div>
            </section>
            <section>

                <span class="mini"></span>
                <img src="千图网/syhb02.jpg" alt="">
                <div id="overlayl">
                    <span class="nnn"></span>
                    <span class="mmm"></span>
                </div>
            </section>
            <section>

                <span class="mini"></span>
                <img src="千图网/syhb03.jpg" alt="">
                <div id="overlayl">
                    <span class="nnn"></span>
                    <span class="mmm"></span></div>
            </section>
            <section>
                <span class="mini"></span>
                <img src="千图网/syhb04.jpg" alt="">
                <div id="overlayl">
                    <span class="nnn"></span>
                    <span class="mmm"></span></div>
            </section>
        </div>
    </div>
    <div class="footer">
        <div class="container3">
            <section>
                <p>常见问题</p>
                <ul id="uuu">
                    <li><a href="">成为特邀设计师</a></li>
                    <li><a href="">成为原始贡献者</a></li>
                    <li><a href="">注册登录</a></li>
                    <li><a href="">账号/密码</a></li>
                    <li><a href="">充值/售后</a></li>
                    <li><a href="">版权投诉</a></li>
                </ul>
            </section>
            <section>
                <p>关于千图网</p>
                <ul id="uuu">
                    <li><a href="">关于我们</a></li>
                    <li><a href="">媒体报道</a></li>
                    <li><a href="">加入我们</a></li>
                    <li><a href="">心系千图</a></li>
                    <li><a href="">每日最新</a></li>
                    <!-- <li><a href="">版权投诉</a></li> -->
                </ul>
            </section>
            <section>
                <p>产品服务</p>
                <ul id="uuu">
                    <li><a href="">官方博客</a></li>
                    <li><a href="">帮助中心</a></li>
                    <li><a href="">千图导航</a></li>
                    <!-- <li><a href="">账号/密码</a></li> -->
                    <!-- <li><a href="">充值/售后</a></li> -->
                    <!-- <li><a href="">版权投诉</a></li> -->
                </ul>
            </section>
            <section>
                <p>友情链接</p>
                <ul id="uuu">
                    <li><a href="">我图网</a></li>
                    <li><a href="">千库网</a></li>
                    <li><a href="">擦图网</a></li>
                    <li><a href="">包图网</a></li>
                    <li><a href="">视达网</a></li>
                    <li><a href="">更多--</a></li>
                </ul>
            </section>
            <section id="sec">
                <h2>客服咨询</h2>
                <div class="cc">
                    <span class="one"></span>
                    <p class="np">400-998-7011</p>
                    <!-- <span></span> -->
                    <p>(9:00-18:00)</p>
                </div>
                <div>
                    <span class="two"></span>
                    <p>feedback@58pic.com</p>
                    <button type="">
                    <img src="qq2.png" alt="">
                </button>
                </div>
            </section>
        </div>
        <div class="di">
            <div class="zo">
                <span class="weibo"></span><span class="weixin"></span>
                <ul class="vv">
                    <li>注册声明</li>
                    <li>版权声明</li>
                    <li>售后服务</li>
                </ul>
            </div>
            <div class="yo">
                <p>Copyright ©2013-2017 千图网 沪ICP备10011451号-6
                    <span class="dd"></span> 上海工商 安全实名验证 信用网站</p>
            </div>
        </div>
    </div>
</body>

</html>
<script>
    var divs = document.querySelectorAll('.left div')
    var span = document.querySelector('.right span')
    for (var i = 0; i < divs.length; i++) {
        divs[i].index = i;
        divs[i].onmouseover = function () {
            for (var i = 1; i < divs.length; i++) {
                divs[i].className = '';
            }
            this.className = 'stll';
        }
        divs[i].onmouseout = function () {
            for (var i = 1; i < divs.length; i++) {
                divs[i].className = '';
            }
        }
    }
    window.onload = function () {
        var box = document.querySelector('.box');
        var imgLis = document.querySelectorAll('.img-list li');
        var indicatorLis = document.querySelectorAll('.indicator li');
        var prev = document.querySelector('.prev');
        var next = document.querySelector('.next');
        var index = 0;
        function prevImg() {
            index = index == 0 ? index = imgLis.length - 1 : index - 1;
            showImg();
        }
        function nextImg() {
            index = index == imgLis.length - 1 ? 0 : index + 1;
            showImg();
            }
        function showImg() {
            for (var i = 0; i < imgLis.length; i++) {
                imgLis[i].className = '';
                indicatorLis[i].className = '';
            }
            console.log(index);
            imgLis[index].className = 'current';
            indicatorLis[index].className = 'active';
        }
        var timer = setInterval(nextImg, 2000);
        for (var i = 0; i < indicatorLis.length; i++) {
            indicatorLis[i].index = i;
            indicatorLis[i].onclick = function () {
                clearInterval(timer);
                timer = null;
                index = this.index;
                showImg();
            }
            indicatorLis[i] = function () {
                if (timer) return;
                timer = setInterval(nextImg, 2000);
            }
        }
        box.onmouseover = function () {
            clearInterval(timer);
            timer = null;
            prev.style.display = 'block';
            next.style.display = 'block';
        }                                                                  
        box.onmouseout = function () {
            if (timer) return;
            timer = setInterval(nextImg, 2000);
            prev.style.display = 'none';
            next.style.display = 'none';
        }
        prev.onclick = function () {
            prevImg();
        }
        next.onclick = function () {
            nextImg();
        }
    }
    var dilis = document.querySelectorAll('.vv li')
    for (var i = 0; i < dilis.length; i++) {
        dilis[i].index = i;
        dilis[i].onmouseover = function () {
            dilis[this.index].style.color = 'green';
        }
        dilis[i].onmouseout = function () {
            dilis[this.index].style.color = 'black';
        }
    }
    var sec = document.querySelectorAll('.text-tupian section');
    var ols = document.querySelectorAll('#overlay');
    for (var i = 0; i < sec.length; i++) {
        sec[i].index = i;
        for (var j = 0; j < ols.length; j++) {
            ols[j].index = j;
            sec[i].onmouseover = function () {
                ols[this.index].style.display = 'block';
            }
            sec[i].onmouseout = function () {
                ols[this.index].style.display = 'none';
            }
        }
    }
    var secs = document.querySelectorAll('.text-tupian2 section');
    var olss = document.querySelectorAll('#overlayl');
    for (var i = 0; i < secs.length; i++) {
        secs[i].index = i;
        for (var j = 0; j < olss.length; j++) {
            olss[j].index = j;
            secs[i].onmouseover = function () {
                olss[this.index].style.display = 'block';
            }
            secs[i].onmouseout = function () {
                olss[this.index].style.display = 'none';
            }
        }
    }
</script>